package com.gwnet.rider.enums;


/**
 * @author: WangLiang
 * @date: 2024/7/31 18:13
 */
public enum AuditStatusEnum {

    ING(0,"审核中"),

    SUCCESS(1,"审核成功"),

    ERROR(-1,"审核失败");


    private Integer code;
    private String desc;

    AuditStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer code() {
        return code;
    }

    public String desc() {
        return desc;
    }

    public static AuditStatusEnum instance(Integer value) {
        AuditStatusEnum[] enums = values();
        for (AuditStatusEnum statusEnum : enums) {
            if (statusEnum.code().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }


}
